package com.twu.biblioteca;

public class ViewMovies extends MenuOption {

    private MovieShelf movieShelf;

    protected ViewMovies(String name,MovieShelf movieShelf) {
        super(name);
        this.movieShelf = movieShelf;
    }

    @Override
    protected String menuOptionHeader() {
        return movieShelf.movieListHeader();
    }

    @Override
    protected String menuOptionBody() {
        return movieShelf.movieList();
    }

    @Override
    protected String getResponse() {
        return menuOptionHeader()+menuOptionBody();
    }

    @Override
    protected boolean hasSubMenu() {
        return false;
    }
}
